package counter.com.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class ResultWebSocket implements Serializable {
    public static final String ACTION_ATTACK = "attack";
    public static final String ACTION_SCAN = "scan";

    private String action;
    private Object data;

    public static ResultWebSocket success(String action, Object data) {
        ResultWebSocket resultWebSocket = new ResultWebSocket();
        resultWebSocket.setAction(action);
        resultWebSocket.setData(data);
        return resultWebSocket;
    }
}
